<template>
    <div>
        首页
        <button @click="test">测试</button>
    </div>
</template>
<script lang="tsx" setup>
import { ref } from 'vue'
import { getVoucherUrlInfo } from '@/utils/voucher/checkVoucher'


async function getVoucherUrlArr() {
    let res = await getVoucherUrlInfo();
    console.log(res)
    if (!res) {
        return
    }
    let { voucherurl, stampurl } = res
    let arry = voucherurl.split('realware');
    let arryStamp = stampurl.split('estamp');
    return {
        arry,
        arryStamp,
    };
}

const test = async () => {

    let res = await getVoucherUrlArr()
    console.log(res)
}
</script>